package com.qo.qsdk.ui.base.floater;

import android.content.Context;
import android.content.SharedPreferences;

public class AssistorPreference {
    private static final String NAME = "assistor.position.settings";

    public static int get(Context context, String key, int defValue) {
        return context.getSharedPreferences(NAME, Context.MODE_PRIVATE).getInt(key, defValue);
    }

    public static boolean set(Context context, String key, int value) {
        SharedPreferences.Editor edit = context.getSharedPreferences(NAME, Context.MODE_PRIVATE).edit();
        edit.putInt(key, value);
        return edit.commit();
    }
}
